/**
 * redux主配置文件
 * 
 * @author Indolphin
 */
import { createStore, applyMiddleware } from "redux";
import thunk from 'redux-thunk';
import reducer from "./reducers";

//引入组合后的
//export type reducerType = ReturnType<typeof reducers>;//获取合并后的reducers类型
//第一个参数就是组合后的reducers 第二个参数就是默认值 第三个就是异步的thunk那些
export default createStore(reducer, applyMiddleware(thunk)); 